DownloadUpdated

public interface DownloadUpdated implements DownloadEvent

An event indicating that the download has been updated.

Functions

Link copied to clipboard
public long currentSpeed()
Returns the current download speed estimate in bytes/second.
Link copied to clipboard
public Download download()
Returns the Download instance initiated this event.
Link copied to clipboard
Returns an Optional containing the rough percent complete or an empty Optional if we do not know it, because we did not receive the total size.
Link copied to clipboard
public long receivedBytes()
Returns the number or received (downloaded) bytes.
Link copied to clipboard
public long totalBytes()
Returns the total size of the downloaded file in bytes.